<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>无标题文档</title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="../../js/jquery.js"></script>
</head>

<body>
<div class="place"><span>位置：</span>
    <ul class="placeul">
        <li>采购管理</li>
        <li>采购单审核</li>
        <li>审核</li>
    </ul>
</div>

<form action="/purchaseOrderManage/purchaseOrderReviewAndSubmission" method="post">
    <input type="hidden" th:value="${oneOneUnapproved.purchaseId}" name="purchaseId">
    <div class="formbody">
        <div class="formtitle"><span>采购单审核</span></div>
        <ul class="forminfo">
            <li>
                <label>采购单编号</label>
                <cite>[[${oneOneUnapproved.purchaseId}]]</cite>
            </li>
            <li>
                <label>采购购时间</label>
                <cite>[[${#dates.format(oneOneUnapproved.purchaseTime, 'yyyy-MM-dd HH:mm')}]]</cite>
            </li>
            <li>
                <label>总金额</label>
                <cite>￥[[${oneOneUnapproved.totalMoney}]]</cite>
            </li>
            <li>
                <label>操作人</label>
                <cite>[[${oneOneUnapprovedDown.uname}]]</cite>
            </li>
        </ul>
        <table class="tablelist">
            <thead>
            <tr>
                <th>序号</th>
                <th>品牌</th>
                <th>类型</th>
                <th>型号</th>
                <th>厂商</th>
                <th>数量</th>
                <th>单位</th>
                <th>单价</th>
                <th>金额</th>
            </tr>
            </thead>
            <tbody>

            <tr th:each="p:${oneOneUnapprovedDown}">
                <td>[[${pStat.index + 1}]]</td>
                <td>[[${p.brandName}]]</td>
                <td>[[${p.typeName}]]</td>
                <td>[[${p.productModel}]]</td>
                <td>[[${p.firmName}]]</td>
                <td>[[${p.count}]]</td>
                <td>个</td>
                <td>[[${p.purchasePrice}]]</td>
                <td>[[${p.totalMoney}]]</td>
            </tr>

            </tbody>
        </table>
        <ul class="forminfo">
            <li>
                <label>审核意见</label>
                <textarea name="textinput" class="textinput" style="text-align: left">[[${oneOneUnapproved.checkOpinion}]]</textarea>
            </li>
            <li>
                <label>审核状态</label>
                <select class="dfselect" name="dfselect">
                    <option value="3">通过</option>
                    <option value="4">不通过</option>
                </select>
            </li>
            <li>
                <label>&nbsp;</label>
                <input name="" type="submit" class="btn" value="审核"/>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input name="" type="button" class="btn" value="返回"
                       onclick="window.history.go(-1);"/>
            </li>
        </ul>
    </div>
</form>
<script type="text/javascript">
    $('.tablelist tbody tr:odd').addClass('odd');
</script>
</body>
</html>
